package {{.tf.Package}};

{{- $tfModel := ""}}
{{- $tfDao := ""}}
{{- range .tplFiles}}
{{- if eq .Type "Model"}}{{$tfModel = .}}{{- end}}
{{- if eq .Type "Dao"}}{{$tfDao = .}}{{- end}}
{{- end}}

{{- $model := toCamel .table.Name}}
{{- $dao := printf "%sDao" $model}}
{{- $service := printf "%sService" $model}}
{{- .ctx.Set "fileName" $dao}}

import cn.ldkj.travel.framework.core.dao.BaseDaoService;
import org.springframework.stereotype.Service;
import {{$tfModel.Package}}.{{$model}};
import {{$tfDao.Package}}.{{$dao}};

/**
* {{$dao}} 已经被注入，在该类中，直接使用 dao.XX()
*
* @author {{.tpl.Author}}
* {{.datetime}}
*/
@Data
public class {{$service}} extends BaseDaoService<{{$dao}}, {{$model}}, String> {

    int insertSelective({{$model}} record);
}

